<template>
  <div style="padding: 20px">
    <div class="contents">
      <el-tabs
        style="height: 100%"
        v-model="activeTab"
        type="card"
        @tab-change="handleClick"
      >
        <el-tab-pane style="height: 100%" label="日历" name="jiaiCalendar">
          <div class="components-content">
            <jiaiCalendar ref="calendarRef" />
          </div>
        </el-tab-pane>
        <el-tab-pane style="height: 100%" label="今日安排" name="reminders">
          <div class="components-content">
            <reminders ref="remindersRef" />
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>
import jiaiCalendar from '@/views/jiaiCalendar/calendar/index.vue'
import reminders from '@/views/jiaiCalendar/reminders/index.vue'

import { ref } from 'vue'

const calendarRef = ref<any>(null)
const remindersRef = ref<any>(null)

const activeTab = ref('jiaiCalendar')

const handleClick = () => {}
</script>

<style lang="scss" scoped></style>
